<%--
   jqGrid
   Copyright (c) 2013 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ attribute name="thousandsSeparator" required="false"
	type="java.lang.String" description="integer/number有效，千位分隔符，默认是一个空格位。"%>
<%@ attribute name="defaulValue" required="false"
	type="java.lang.String"
	description="integer/number/currency有效，integer默认为：0，number默认为0.00，currency默认为0.00"%>
<%@ attribute name="decimalSeparator" required="false"
	type="java.lang.String" description="number有效，小数位分隔符。默认为”.“。"%>
<%@ attribute name="decimalPlaces" required="false"
	type="java.lang.String" description="number有效，小数后面显示的位数。默认为2。"%>
<%@ attribute name="prefix" required="false" type="java.lang.String"
	description="number/currency有效，字符前缀。默认为空。"%>
<%@ attribute name="suffix" required="false" type="java.lang.String"
	description="number/currency有效，字符前缀。默认为空。"%>
<%@ attribute name="srcformat" required="false" type="java.lang.String"
	description="源格式，即应该被转的日期格式。默认为Y-m-d"%>
<%@ attribute name="newformat" required="false" type="java.lang.String"
	description="新的输出格式。"%>
<%@ attribute name="target" required="false" type="java.lang.String"
	description="link/showlink有效，表示目标打开窗口。默认为空"%>
<%@ attribute name="baseLinkUrl" required="false"
	type="java.lang.String" description="showlink有效，这是一个超链接地址。默认为空。"%>
<%@ attribute name="showAction" required="false" type="java.lang.String"
	description="showlink有效，是baseLinkUrl后面的一个额外值。默认为空。"%>
<%@ attribute name="addParam" required="false" type="java.lang.String"
	description="showlink有效，可以添加额外的参数在idName属性后。默认空。"%>
<%@ attribute name="idName" required="false" type="java.lang.String"
	description="showlink有效，第一个白添加到showAction的参数。默认为id。"%>

<%@ attribute name="disabled" required="false" type="java.lang.Boolean"
	description="checkbox有效，是否禁用。默认为true"%>
<%@ attribute name="keys" required="false" type="java.lang.Boolean"
	description="actions有效，默认false 。"%>
<%@ attribute name="editbutton" required="false"
	type="java.lang.Boolean" description="actions有效，编辑按钮，默认true 。"%>
<%@ attribute name="delbutton" required="false" type="java.lang.Boolean"
	description="actions有效，删除按钮 ，默认为true。"%>
<%@ attribute name="editformbutton" required="false"
	type="java.lang.Boolean" description="actions有效，默认false 。"%>
<%@ attribute name="onEdit" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="onSuccess" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="afterSave" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="onError" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="afterRestore" required="false"
	type="java.lang.String" description="actions有效，默认null 。"%>
<%@ attribute name="extraparam" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="url" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="delOptions" required="false" type="java.lang.String"
	description="actions有效，默认null 。"%>
<%@ attribute name="editOptions" required="false"
	type="java.lang.String" description="actions有效，默认null 。"%>


<c:set var="formatoptions" value="{customsOption:true" scope="request" />

<c:if test="${not empty thousandsSeparator}">
	<c:set var="formatoptions"
		value="${formatoptions},formatoptions:'${thousandsSeparator}'"
		scope="request" />
</c:if>

<c:if test="${not empty defaulValue}">
	<c:set var="formatoptions"
		value="${formatoptions},defaulValue:'${defaulValue}'" scope="request" />
</c:if>

<c:if test="${not empty decimalSeparator}">
	<c:set var="formatoptions"
		value="${formatoptions},decimalSeparator:'${decimalSeparator}'"
		scope="request" />
</c:if>

<c:if test="${not empty decimalPlaces}">
	<c:set var="formatoptions"
		value="${formatoptions},decimalPlaces:${decimalPlaces}"
		scope="request" />
</c:if>

<c:if test="${not empty prefix}">
	<c:set var="formatoptions" value="${formatoptions},prefix:'${prefix}'"
		scope="request" />
</c:if>

<c:if test="${not empty suffix}">
	<c:set var="formatoptions" value="${formatoptions},suffix:'${suffix}'"
		scope="request" />
</c:if>

<c:if test="${not empty srcformat}">
	<c:set var="formatoptions"
		value="${formatoptions},srcformat:'${srcformat}'" scope="request" />
</c:if>

<c:if test="${not empty newformat}">
	<c:set var="formatoptions"
		value="${formatoptions},newformat:'${newformat}'" scope="request" />
</c:if>



<c:if test="${not empty target}">
	<c:set var="formatoptions" value="${formatoptions},target:'${target}'"
		scope="request" />
</c:if>
<c:if test="${not empty baseLinkUrl}">
	<c:set var="formatoptions"
		value="${formatoptions},baseLinkUrl:'${baseLinkUrl}'" scope="request" />
</c:if>
<c:if test="${not empty showAction}">
	<c:set var="formatoptions"
		value="${formatoptions},showAction:'${showAction}'" scope="request" />
</c:if>
<c:if test="${not empty addParam}">
	<c:set var="formatoptions"
		value="${formatoptions},addParam:'${addParam}'" scope="request" />
</c:if>
<c:if test="${not empty idName}">
	<c:set var="formatoptions" value="${formatoptions},idName:'${idName}'"
		scope="request" />
</c:if>
<c:if test="${not empty disabled}">
	<c:set var="formatoptions"
		value="${formatoptions},disabled:${disabled}" scope="request" />
</c:if>
<c:if test="${not empty keys}">
	<c:set var="formatoptions" value="${formatoptions},keys:${keys}"
		scope="request" />
</c:if>
<c:if test="${not empty editbutton}">
	<c:set var="formatoptions"
		value="${formatoptions},editbutton:${editbutton}" scope="request" />
</c:if>
<c:if test="${not empty delbutton}">
	<c:set var="formatoptions"
		value="${formatoptions},delbutton:${delbutton}" scope="request" />
</c:if>
<c:if test="${not empty editformbutton}">
	<c:set var="formatoptions"
		value="${formatoptions},editformbutton:${editformbutton}"
		scope="request" />
</c:if>


<c:if test="${not empty onEdit}">
	<c:set var="formatoptions" value="${formatoptions},onEdit:'${onEdit}'"
		scope="request" />
</c:if>
<c:if test="${not empty onSuccess}">
	<c:set var="formatoptions"
		value="${formatoptions},onSuccess:'${onSuccess}'" scope="request" />
</c:if>
<c:if test="${not empty afterSave}">
	<c:set var="formatoptions"
		value="${formatoptions},afterSave:'${afterSave}'" scope="request" />
</c:if>
<c:if test="${not empty onError}">
	<c:set var="formatoptions"
		value="${formatoptions},onError:'${onError}'" scope="request" />
</c:if>
<c:if test="${not empty afterRestore}">
	<c:set var="formatoptions"
		value="${formatoptions},afterRestore:'${afterRestore}'"
		scope="request" />
</c:if>
<c:if test="${not empty extraparam}">
	<c:set var="formatoptions"
		value="${formatoptions},extraparam:'${extraparam}'" scope="request" />
</c:if>

<c:if test="${not empty url}">
	<c:set var="formatoptions" value="${formatoptions},url:'${url}'"
		scope="request" />
</c:if>
<c:if test="${not empty delOptions}">
	<c:set var="formatoptions"
		value="${formatoptions},delOptions:'${delOptions}'" scope="request" />
</c:if>
<c:if test="${not empty editOptions}">
	<c:set var="formatoptions"
		value="${formatoptions},editOptions:'${editOptions}'" scope="request" />
</c:if>
<c:set var="formatoptions" value="${formatoptions}}" scope="request" />